package com.momo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by MOMO on 2019/4/28.
 */
@Slf4j
@RestController
@RefreshScope
public class NaconsConfig {
    @Value("${didispace.title:}")
    private String title;
    @Value("${redis.a:}")
    private String properties;
    @Value("${redis.b:}")
    private String yml;

    @RequestMapping("/get")
    public String get() {
        log.info(properties);
        log.info(yml);
        return title;
    }
}
